package reading.common.setting;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * ${DESCRIPTION}
 *
 * @author txw
 * @since 2019-01-10 9:43
 **/
@Component
@ConfigurationProperties(prefix = "reading.task")
@Data
public class TaskSetting {
    @ApiModelProperty("cron 每日推荐票获取时间")
    private String dailyRecommendExp;
    @ApiModelProperty("每日推荐票获取 总开关")
    private String dailyRecommendExpSwitch;
    @ApiModelProperty("每月5号发送月票")
    private String ticketSendDay;
    @ApiModelProperty("每月5号发送月票开关")
    private String ticketSendDaySwitch;
    @ApiModelProperty("每小时检查广告任务")
    private String advertCron;
    private String advertCronOn;
    @ApiModelProperty("每小时检查公告任务")
    private String noticeCron;
    private String noticeCronOn;
}
